<!DOCTYPE html>
<html>
<head>
	<title>Freesom公司内网注册</title>
	<meta name="viewport" content="width=device-width, initial-scale=1.0">
<!-- 	<link rel="stylesheet" type="text/css" href="http://airtheme.net/demo/loginform/black/css/login.css"> -->
	<% HTML::style('css/login.css') %>
	<link rel="shortcut icon" href="<% asset('icon/iPhone_Icon_FS_icon2.png') %>">
	<!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
	<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
	<!--[if lt IE 9]>
	<script src="http://cdn.bootcss.com/html5shiv/3.7.0/html5shiv.min.js"></script>
	<script src="http://cdn.bootcss.com/respond.js/1.3.0/respond.min.js"></script>
	<![endif]-->
</head>
	<div id="wrapper">
		@if (Session::has('message'))
			<div style="text-align: center">
				<% Session::get('message') %>
			</div>
		@endif
		<% Form::open(array('url' => 'account/sign-up', 'class' => 'form-login')) %>

			<div class="header">
				<a href="<%url('/')%>" class="link-head-left"> <i class="icon-home"></i>
				</a>
				<span>Sign up</span>
			</div>
<!-- 
			<div class="avatar">
				<% HTML::image('img/vimeo.jpg')%>
			</div> -->

			<div class="inputs">

				<% Form::text('name',null,  array('placeholder'=>'姓名' ,'required' => 'required')) %>
				
				<% Form::text('email', null,  array('placeholder'=>'邮箱地址' ,'required' => 'required')) %>
				<%$errors->first('email', '<p class="help-block">:message</p>');%>
				
				<% Form::text('phone', null,  array('placeholder'=>'手机号码' ,'required' => 'required','autocomplete'=>"off")) %>
				<%$errors->first('phone', '<p class="help-block">:message</p>');%>

				<% Form::select('gender', array('' => '请选择性别', '男' => '男', '女' => '女'), null,array('id' => 'gender', 'required' => 'required')) %>
				<%$errors->first('gender', '<p class="help-block">:message</p>');%>

				<% Form::select('department', array('' => '请选择部门', '管理部' => '管理部', '美术部' => '美术部', '网络开发部' => '网络开发部', '软件开发部' => '软件开发部', '硬件开发部' => '硬件开发部'), null,array('id' => 'department', 'required' => 'required')) %>
				<%$errors->first('department', '<p class="help-block">:message</p>');%>

				<% Form::select('role', array('' => '请选择职位', 'staff' => '员工', 'manager' => '部门主管', 'admin' => '管理员'), null,array('id' => 'role', 'required' => 'required')) %>
				<%$errors->first('role', '<p class="help-block">:message</p>');%>

				<% Form::password('password',  array('placeholder'=>'密码','required' => 'required')) %>
				<%$errors->first('password', '<p class="help-block">:message</p>');%>

				<% Form::password('password_confirm',  array('placeholder'=>'确认密码','required' => 'required')) %>				
				<%$errors->first('password_confirm', '<p class="help-block">:message</p>');%>
				<div class="clear"></div>

				<div class="button-login">
					<% Form::submit('注册') %>
				</div>
			</div>

			<div class="footer-login">
<!-- 				<ul class="social-links">
					<li class="twitter">
						<a href="#">
							<span>twitter</span>
						</a>
					</li>
					<li class="google-plus">
						<a href="#">
							<span>google</span>
						</a>
					</li>
					<li class="facebook">
						<a href="#">
							<span>facebook</span>
						</a>
					</li>
				</ul> -->
			</div>

		<% Form::close() %>
	</div>
	<!-- jQuery (necessary for Bootstrap's JavaScript plugins) -->
	<script src="http://cdn.bootcss.com/jquery/1.10.2/jquery.min.js"></script>

</body>
</html>